//
//  WKDelegate.m
//  HTML_CSS_JS
//
//  Created by 范金龙 on 2020/4/28.
//  Copyright © 2020 FF. All rights reserved.
//

#import "WKDelegate.h"

@implementation WKDelegate

- (void)userContentController:(nonnull WKUserContentController *)userContentController didReceiveScriptMessage:(nonnull WKScriptMessage *)message {
    if ([self.wkdelegate respondsToSelector:@selector(userContentController:didReceiveScriptMessage:)]) {
//        [self.wkdelegate performSelector:@selector(userContentController:didReceiveScriptMessage:)];
        [self.wkdelegate userContentController:userContentController didReceiveScriptMessage:message];
    }
}

@end
